package model;

import java.util.Date;

public class Sale {
    private int id;
    private int bookId;
    private String bookTitle;
    private int quantity;
    private double totalPrice;
    private Date saleDate;
    
    public Sale(int id, int bookId, String bookTitle, int quantity, double totalPrice, Date saleDate) {
        this.id = id;
        this.bookId = bookId;
        this.bookTitle = bookTitle;
        this.quantity = quantity;
        this.totalPrice = totalPrice;
        this.saleDate = saleDate;
    }
    
    // Getter和Setter方法
    public int getId() { return id; }
    public int getBookId() { return bookId; }
    public String getBookTitle() { return bookTitle; }
    public int getQuantity() { return quantity; }
    public double getTotalPrice() { return totalPrice; }
    public Date getSaleDate() { return saleDate; }
} 